<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div style="height: 1000px">hello</div>
    <div id="box">hello box</div>
    <script>
      const box = document.getElementById("box");
      // 系统键
      box.onclick = function (e) {
        console.log(e.button);
        console.log("shiftKey", e.shiftKey);
        console.log("ctrlKey", e.ctrlKey);
        console.log("altKey", e.altKey);
        console.log("metaKey", e.metaKey);
        console.log("窗口", e.clientX, e.clientY);
        console.log("文档", e.pageX, e.pageY);
      };

      // box.oncontextmenu = function (e) {
      //   console.log(e.button);
      // };
    </script>
  </body>
</html>
